<?php
namespace app\common\model;
use think\Model;
class Type extends Model
{  	
	//获取分类信息
	public function getType(){
        $cidArr = array(1,15,12);
		$typesRes = [];
		foreach($cidArr as $k => $v) {
			$typesRes[$v] = $this->where(array('cid'=>$v))->order("vieworder asc")->select();
		}
		return $typesRes;
    }
	
}


